import { createStore } from "vuex";

export default createStore({
    state: {
        showLogin: false,
        userInfo: null,
    },
    getters:{
        getLoginUserInfo:(state)=>{
            return state.userInfo
        }
    },
    mutations:{
        setuserInfo:(state,data)=>{
            console.log(data,"data")
            state.userInfo=data
        },
        setshowlogin:(state,data)=>{
        state.showLogin=data    
        }
    },
    actions:{},
    modules:{}
})